package com.hs.carrental.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hs.carrental.entity.Car;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hs.carrental.vo.car.CarPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lyy
 * @since 2021-03-17
 */
@Mapper
public interface CarMapper extends BaseMapper<Car> {

    IPage<CarPageVo> getCarsPage(Page page, @Param("carName") String carName, @Param("carNumber")String carNumber,
                                 @Param("state")Integer state, @Param("storeId")Integer storeId,@Param("carSearch")String carSearch
                                 );

    Long updateTo0(@Param("list")List<Integer> list);
}
